{include file="common/header.tpl"}
{if $AppUI->id <= 0}
	{include file="index/login.tpl"}  
{else}
	{include file="common/menu.tpl"}
    <div class="rightColumn">
    	<div class="boxContent">
        	<div class="contentItem">
                <div class="contentItems">
                	{if $intStatuses >= 0}
                		<div class="headerTitle">
                        	<h2>
                            	{if $intStatuses == 0}
                            		<a href="{$smarty.const.HOST_BACKEND}user/waiting">Thành viên chờ kích hoạt</a>
                                {elseif $intStatuses == 1}
                                	<a href="{$smarty.const.HOST_BACKEND}user/index">Thành viên chính thức</a>
                                {elseif $intStatuses == 2}
                                	<a href="{$smarty.const.HOST_BACKEND}user/cancelation">Thành viên đang tạm dừng</a>
                                {else}
                                	<a href="{$smarty.const.HOST_BACKEND}user/suspend">Thành viên bị xóa</a>
                                {/if}
                                &raquo; Thay đổi mật khẩu của thành viên {$objUser->username}
                           	</h2>
                       	</div>
                    {/if}                	
                	<form name="frmChangepass" id="frmChangepass" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}user/savechangepass">
                    	<input type="hidden" name="puserid" id="puserid" value="{$objUser->id}"/>
                        <input type="hidden" name="pemail" id="pemail" value="{$objUser->email}"/>
                        <input type="hidden" name="pstatuses" id="pstatuses" value="{$intStatuses}"/>
                        <input type="hidden" name="ppage" id="ppage" value="{$intPage}"/>
                        {if $intStatuses == 0}
                        	<input type="hidden" name="pbackurl" id="pbackurl" value="{$smarty.const.HOST_BACKEND}user/waiting"/>
                        {elseif $intStatuses == 1}
                        	<input type="hidden" name="pbackurl" id="pbackurl" value="{$smarty.const.HOST_BACKEND}user/index"/>
                        {elseif $intStatuses == 2}
                        	<input type="hidden" name="pbackurl" id="pbackurl" value="{$smarty.const.HOST_BACKEND}user/cancelation"/>
                        {else}
                        	<input type="hidden" name="pbackurl" id="pbackurl" value="{$smarty.const.HOST_BACKEND}user/suspend"/>
                        {/if}
                        <div class="secData">
                            <div class="userInput">
                                <label for="ppassword">Mật khẩu <span class="symbolRequired">*</span>:</label>
                                <input type="password" class="text" name="ppassword" id="ppassword" value="" />
                            </div>
                            <div class="userInput">
                                <label for="ppassword_confirm">Xác nhận mật khẩu <span class="symbolRequired">*</span>:</label>
                                <input type="password" class="text" name="ppassword_confirm" id="ppassword_confirm" value="" />
                            </div>                            
                            <div class="secAction">
                                <input type="submit" value="Lưu dữ liệu"/>
                                <input type="reset" value="Nhập lại"/>
                            </div>
                       	</div>
                   	</form>
                </div>
          	</div>
        </div>
    </div>
{/if}
{include file="common/footer.tpl"}
                
